package com.atguigu.mycloud.service;

import com.atguigu.mycloud.Enum.ReturnCodeEnum;
import com.atguigu.mycloud.Enum.ReturnMessage;
import org.springframework.stereotype.Component;

/**
 * @author 任浩
 * @version 1.0
 */
@Component
public class PayFeignSentinelApiFallBack implements PayFeignSentinelApi {
    @Override
    public ReturnMessage getPayByOrderNo(String orderNo)
    {
        return ReturnMessage.fail(ReturnCodeEnum.RC500.getCode(),"对方服务宕机或不可用，FallBack服务降级o(╥﹏╥)o");
    }

}
